<?php

require_once 'lib.php';
$fp = new FlickrPhotosetsCanvas(FlickrPhotosetsCanvas::require_add, false, false);

$query = sprintf("SELECT COUNT(*) FROM %s_log WHERE time > '%s' AND action='add'", DB_TABLE, strtotime("2 days ago"));
$result = mysql_query($query);
$adds = mysql_fetch_assoc($result);
echo $adds['COUNT(*)'];

//$query = sprintf("SELECT * FROM %s WHERE facebook_uid = '%d'", DB_TABLE, $fp->sql_clean($fp->uid));
//$result = mysql_query($query);
//$config = mysql_fetch_assoc($result);
//print_r($config);

echo '<br/><br/>happy!';

?>